<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "{{%vip}}".
 *
 * @property int $id
 * @property int|null $days 天数
 * @property float|null $amount 金额
 * @property string|null $title 标题
 * @property int|null $status 状态
 * @property int|null $sort 排序
 * @property string|null $create_time 创建时间
 * @property string|null $update_time 修改时间
 */
class Vip extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%vip}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['days', 'status', 'sort'], 'integer'],
            [['amount'], 'number'],
            [['create_time', 'update_time'], 'safe'],
            [['title'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'days' => '天数',
            'amount' => '金额',
            'title' => '标题',
            'status' => '状态',
            'sort' => '排序',
            'create_time' => '创建时间',
            'update_time' => '修改时间',
        ];
    }
}
